﻿<%@ Page Title="自定义商品分类" Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="ItemSellerCate.aspx.cs" Inherits="map.member.ItemSellerCate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <style type ="text/css">
        .MainContentDiv
        {
            width:820px;
        }
        .CateNavDiv
        {
            margin-top:30px;
            width:100%;
            height:23px;  
            border-bottom:solid 1px lightGray;
        }
        .CateNavDiv ul li
        {
            display:inline;
            list-style-type:none;
            background:url(../img/tagleft.gif) no-repeat left bottom;
            margin-left:10px;
            height:23px;
            float:left;  
        }
        .CateNavDiv ul li a
        {
            padding-left:10px;
            padding-right:10px;
            line-height:23px;
            height:23px;
            background:url(../img/tagright.gif) no-repeat right bottom;
            float:left;
                        
        }
        .CateNavDiv ul li.selected
        {                
            background:url(../img/tagleft.gif) no-repeat left top; 
            margin-bottom:-2px;
            height:25px;          
        }
        .CateNavDiv ul li.selected a
        {
            background:url(../img/tagright.gif) no-repeat right top;   
              line-height:25px;
              height:25px;         
        }
        .CateOprDiv
        {
            margin-top:10px;
            width:100%;
        }
        
        
    </style>
      <link href="../outstyle.css" rel="stylesheet" type="text/css" />
      <link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
      <script src="../js/dropdowncontent.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <div class="MainContentDiv" id="MainContentDiv">
        <div class="CateNavDiv">
            <ul id="CateNaveUl">
                <li class="selected"><a  id="#listcate" href ="#listcate" onclick ="navliSelected(this);">编辑分类</a></li>
                <li><a  id="#cateitem" href="#cateitem" onclick ="navliSelected(this);">宝贝归类</a></li>
            </ul>
        </div> 
        
        <div class ="CateOprDiv">
            <iframe id="CateOprFrame" name="CateOprFrame" src ="dialogs/ItemSeller_listcate.aspx"  frameborder="0"   width="100%"  scrolling="no"  >
            </iframe>
        </div>
    </div>
    
    <script type="text/javascript" >
         //浏览器类型
        var SysAgent = {};
        var ua = navigator.userAgent.toLowerCase();
        if (window.ActiveXObject)
            SysAgent.ie = ua.match(/msie ([\d.]+)/)[1]
        else if (document.getBoxObjectFor)
            SysAgent.firefox = ua.match(/firefox\/([\d.]+)/)[1]
        else if (window.MessageEvent && !document.getBoxObjectFor)
            SysAgent.chrome = ua.match(/chrome\/([\d.]+)/)[1]
        else if (window.opera)
            SysAgent.opera = ua.match(/opera\/([\d.]+)/)[1]
        else if (window.openDatabase)
            SysAgent.safari = ua.match(/version\/([\d.]+)/)[1];
    
        function navliSelected(thisObj) {
            var frameObj = document.getElementById("CateOprFrame");
            var catenaveul = document.getElementById("CateNaveUl");
            var catenavlis = catenaveul.getElementsByTagName("li");
            for (var i = 0; i < catenavlis.length; i++) {
                if (catenavlis[i] == thisObj.parentNode) {
                    catenavlis[i].className = "selected";
                    if ((thisObj.id == "#listcate") ) {
                        frameObj.src = "dialogs/ItemSeller_listcate.aspx?v="+((new Date()).toLocaleTimeString ());
                                               
                    }
                    else {
                        frameObj.src = "dialogs/ItemSeller_cateitem.aspxv=" + ((new Date()).toLocaleTimeString());
                    }
                }
                else {
                    catenavlis[i].className = "";
                }
            }
        }

        function initCateOprFrame() {
            var locHash = window.location.hash;
            if (locHash == "#listcate" || locHash == "#cateitem") {
                navliSelected(document.getElementById(locHash));
            }
        }
        initCateOprFrame();
        initWidthAndHeight();
        function initWidthAndHeight() {
            document.getElementById("MainContentDiv").style.width = screen.availWidth - 200 + "px";
        }
    </script>
</asp:Content>
